<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('setting/judge')}">卡控配置</a></li>
			<li class="active"><a>配置编辑</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('setting/judge_edit')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$row.name}" name="name">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>说明</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$row.remark}" name="remark">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>开关</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="open">
						<option value="1" <if $row.open == 1>selected</if>>开</option>
						<option value="0" <if $row.open == 0>selected</if>>关</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>数值</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="value" value="{$row.value}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>经理</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="one">
						<option value="1" <if $row.one == 1>selected</if>>开</option>
						<option value="0" <if $row.one == 0>selected</if>>关</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>总经理</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="two">
						<option value="1" <if $row.two == 1>selected</if>>开</option>
						<option value="0" <if $row.two == 0>selected</if>>关</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$row.id}" />
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>